package ooday02zy1;

public class Person {
    String name;
    int old;
    String address;
    Person(String name,int old,String address){
        this.name=name;
        this.address=address;
        this.old=old;
    }
    void eat(){
        System.out.println("我叫"+name+"我在吃饭...");
    }
    void sayHi(){
        System.out.println("你好我叫"+name+",今年"+old+"岁了，我是"+address+"人...");
    }













    /*
    String name;
    int old;
    String address;
    Person(String name,int old,String address){
        this.name=name;
        this.address=address;
        this.old=old;
    }
    void sayHi(){
        System.out.println("你好我叫"+name+",今年"+old+"岁了，我是"+address+"人...");
    }
    void eat(){
        System.out.println("我叫"+name+"我在吃饭...");
    }

     */
}
